import {
  TaskName,
  FeatureName,
  Task,
} from '../../../main/biz/ipc/feature.const';
import { ProgressInfo } from '../../../main/biz/ipc/protocol/progress';

export type ProgressState = { progressInfos: ProgressInfo[] };
export type GlobalState = { progressState: ProgressState };
export const initProgressState: ProgressState = {
  progressInfos: [
    {
      task: new Task(FeatureName.CSV_TO_EXCEL, TaskName.CSV_TO_EXCEL),
      progress: 0,
    },
    {
      task: new Task(FeatureName.VERTICAL_MERGE, TaskName.VERTICAL_MERGE),
      progress: 0,
    },
  ],
};
